class PersonC {
  name
  sex
  constructor(name, sex) {
    this.name = name
    this.sex = sex
  }
  say(msg) {
    console.log('说话', msg);
    console.log(`个人信息:${this.name}:${this.sex}`)
  }
}

// 初始化对象，调用构造函数constructor
// 把'zhichao','nan'传给构造函数的形参
let pc1 = new PersonC('zhichao', 'nan')
console.log(pc1.name);
console.log(pc1.sex);
let pc2 = new PersonC('zhichao', 'nv')
console.log(pc2.name);
console.log(pc2.sex);

class name {
  constructor(parameters) {
  }
}

class Foo000{
  static bar(){
    this.baz();
  }
}





